﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UCL.Powersource.TFS;

namespace UCL.Powersource.Mock
{
    public class DummyProjectContextExt: IProjectContextExt
    {
        public DummyProjectContextExt(string Uri) 
        {
            if (!String.IsNullOrWhiteSpace(Uri))
            {
                _DomainName = Uri;
                _DomainUri = Uri;
                _ProjectName = string.Empty;
            }
        }

        public DummyProjectContextExt(string dName, string dUri, string pName)
        {
            _DomainName = dName;
            _DomainUri = dUri;
            _ProjectName = pName;
            //_ProjectUri = pUri;
        }

        private string _DomainName = "DummyDomainName";


        public string DomainName
        {
            get { return _DomainName; }
        }

        private string _DomainUri = "http://dummy";

        public string DomainUri
        {
            get { return _DomainUri ; }
        }

        private string _ProjectName = "DummyProjectName";

        public string ProjectName
        {
            get { return _ProjectName; }
        }

        //private string _ProjectUri = "Dummy Project Uri";

        public string ProjectUri
        {
            get { return DomainUri+"/"+ProjectName; }
        }
    }
}
